import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

@ManagedBean
@SessionScoped
public class OperationToUser extends Users implements Serializable {

    String writeFirstName;
    String writeLastName;
    String writeLogin;
    String writePassword;


    @Override
    public void insert() {
        super.insert();
    }

    @Override
    public HashMap vivod() {
        return super.vivod();
    }

    public void addMapUser() {
        mapUsers.put(writeLogin, new InfoUbautUsers(writeFirstName, writeLastName, getWritePassword(), 1));
    }

    public String getWriteFirstName() {
        return writeFirstName;
    }

    public void setWriteFirstName(String writeFirstName) {
        this.writeFirstName = writeFirstName;
    }

    public String getWriteLastName() {
        return writeLastName;
    }

    public void setWriteLastName(String writeLastName) {
        this.writeLastName = writeLastName;
    }

    public String getWriteLogin() {
        return writeLogin;
    }

    public void setWriteLogin(String writeLogin) {
        this.writeLogin = writeLogin;
    }

    public String getWritePassword() {
        return writePassword;
    }

    public void setWritePassword(String writePassword) {
        this.writePassword = writePassword;
    }


}
